<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
	<link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
	<link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
	<script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
	<![endif]-->
	<title></title>
</head>
<body>
<div class="contant">
<div class="row"> <h3 class="page-header">收款单位<small><gt name='info.id' value=''>/修改<else/>/添加</gt></small></h3></div>
<div class="row">
	<div class="panel panel-default">
		<div class="panel-body">
			<form role="form" id="myform" method="post"  class="form-horizontal">
			    <div class="form-group">
			        <label class="col-sm-3 control-label">单位名称：<span class="red">*</span></label>
			        <div class="col-sm-4">
			        	<input class="form-control required" name="payee_name" value="{$info.name}" maxlength='20'>
			        </div>
			    </div>
			    <div class="form-group">
                    <label class="col-sm-3 control-label">所属部门：<span class="red">*</span></label>
                    <div class="col-sm-4">
                        <select class="form-control" name="gid">
                            <volist name='group' id='group'>
                          	     <option value="{$group.id}" <eq name='group.id' value='$info.gid'>selected</eq> >{$group.name}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                 <div class="form-group">
			        <label class="col-sm-3 control-label">银行名称：<span class="red">*</span></label>
			        <div class="col-sm-4">
			        	<input class="form-control required" name="bankName" value="{$info.bank_name}" maxlength='20'>
			        </div>
			    </div>
			     <div class="form-group">
			        <label class="col-sm-3 control-label">银行卡号：<span class="red">*</span></label>
			        <div class="col-sm-4">
			        	<input class="form-control required" name="bankCard" value="{$info.bank_card}" maxlength='20'>
			        </div>
			    </div>
			    <div class="form-group">
					<label  class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-4">
		            <label class="radio-inline">
		                <input type="radio" value="1" id="status1" name="status" <neq name="info.status" value="0">checked</neq>>启用
		            </label>
		            <label class="radio-inline">
		                <input type="radio" value="0"  id="status2" name="status" <eq name="info.status" value="0">checked</eq>>禁用
		            </label>
		            </div>
		        </div>
		        <gt name='info.id' value='0'> <input type='hidden' name='id' id="id" value='{$info.id}'></gt>
		        <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-5">
				        <button class="btn btn-primary" type="submit">提交</button>
				       	<a href="{:U('Payee/index')}"><button class=" btn btn-default" type="button">返回</button></a>
		       		</div>
		       	</div>
			</form>
		</div>
	</div>
</div>
</div>
<script src="{:COM}js/ajaxfileupload.js"></script>
<script type="text/javascript">
          $('.uploadA').change(function () {
            $.ajaxFileUpload({
                url:'{:U("Upload/logo")}',//处理图片脚本
                secureuri: false,
                fileElementId :'fileId',//file控件id
                dataType : 'text',
                success: function (data){
                    $("#ajax_content").attr("src",data);
                    $("#img_box").attr("value",data);
                },
                error: function(data){
                    alert(data+"333");
                }
            })
        })
        $('#gid').change(function(){
		var gid = $(this).val(), html = '<option value="">请选择身份</option>';
		if(gid == 2){
			$('#bank').css('display','block');
		}else{
			$('#bank').css('display','none');
		}
	  });
</script>
</body>